package com.dr.service;

import com.dr.exception.ServiceExcep;
import com.dr.pojo.WeChatLogin;

/**
 * Created by tugou on 2017/5/23.
 */
public interface WeChatLoginService {

    /**
     * 保存微信登录信息
     */
    WeChatLogin createWeChatLoginInfo() throws ServiceExcep;

    /**
     * 更新
     */
    void updateWeChatLogin(String code) throws ServiceExcep;


    /***
     * 根据微信登录凭证获取微信登录信息
     * @return
     */
    WeChatLogin getWeChatLoginByCode(String code) throws ServiceExcep;
}
